From: Damien Tournoud Date: Tue, 13 May 2025 15:29:59 +0000 (-0700) Subject: appDisplay: Clicking outside folders does not consistently close them X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~124^2^2~97 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5de29efbe5a3e08388984586f906a396a5ea5a13;p=gnome-shell.git appDisplay: Clicking outside folders does not consistently close them This is because the container of the dialog changes sizes after a refresh, for reasons that are not fully explained. A better condition is to check explicitly that the click doesn't fall into the dialog. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7541 Co-authored-by: Florian Müllner Part-of: --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index e5fcbb5bc..393e49e98 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -2500,7 +2500,7 @@ export const AppFolderDialog = GObject.registerClass({ const actor = global.stage.get_actor_at_pos(Clutter.PickMode.ALL, x, y); - if (actor === this) + if (!this._viewBox.contains(actor)) this.popdown(); }); this.add_action(clickAction);